Get Message Replies
AutomatR.MicrosoftTeams.Activities.GetMessageReplies
The "Get Message Replies" activity in AutomatR's Microsoft Teams package allows you to retrieve message replies in Teams for comprehensive conversation analysis and insights. This activity helps in accessing chat messages and managing replies within the specified channel and team in Microsoft Teams.
Properties
Name | Description |
---|---|
Input | |
Channel ID | Specifies the unique identifier (ID) of the channel where the original message and its replies are located. String variables containing the channel ID. |
Team ID | Specifies the unique identifier (ID) of the team to which the channel belongs. String variables containing the team ID. |
Message ID | Specifies the unique identifier (ID) of the message for which replies need to be retrieved. String variables containing the message ID. |
Misc | |
Display Name | Provides a customizable name for the activity displayed in the workflow. The display name enhances clarity and organization within the automation project. String variables containing the desired display name. |
Optional | |
Delay | Specifies the amount of time (in seconds) to wait before executing the "Get Message Replies" activity. This can be useful for handling synchronization issues. Integer variables containing the delay duration. Ex.: If the amount of time is 1000 milliseconds or 1 sec, i.e., 1. |
Output | |
Result | Outputs a ICollectionPage<ChatMessage> representing a collection page for managing and accessing chat messages, specifically the replies to the specified message. Variables of relevant types (e.g., ICollectionPage<ChatMessage> variables) to store the retrieved message replies. |
How to use:
- Drag and drop the "Get Message Replies" activity onto the workflow.
- Configure the properties by specifying the team ID, channel ID, message ID for which replies need to be retrieved.
- Optionally, configure the delay.
- Execute the workflow to retrieve the message replies within Microsoft Teams.
Example: Consider an example where the "Get Message Replies" activity is used to retrieve replies for a specific message in a Teams channel:
Get Message Replies:
Delay: 2
Team ID: "abcd1234"
Channel ID: "efgh5678"
Message ID: "ijkl9012"
Result: messageReplies
In this example, the activity waits for 2 seconds before executing, retrieves the replies for the message with the ID "ijkl9012" in the channel with the ID "efgh5678" within the team with the ID "abcd1234." The retrieved message replies are stored in the ICollectionPage<ChatMessage>
variable "messageReplies" for further handling in the workflow.